package com.software.backend.login.repository;

import com.software.backend.login.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author 王俊坤
 * @version 1.0
 * @date 2022/11/10 17:08
 */
public interface UsersRepository extends JpaRepository<User, Long> {
    public Optional<User> findUsersByAccount(String account);

    public Optional<User> findUserByPhone(String phone);
}
